<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img {
            width: 50px;
            /*垂直对齐方式
            baseline基线对齐
            top上对齐
            middle中间对齐
            bottom下对齐
            */
            vertical-align: top;
        }

        #d1{
            width: 100px;
            height: 50px;
            background-color: red;
            position: absolute;/*设置绝对定位*/
            /*设置元素显示层级，值越大显示越靠前*/
            z-index: 3;
        }

        #d2{
            width: 50px;
            height: 100px;
            background-color: green;
            position: absolute;
            z-index: 2;

        }
    </style>
</head>
<body>
<div id="d1"></div>
<div id="d2"></div>
<input type="text"><img src="../day05/11.jpg" alt="">
</body>
</html>